//
//package top.fangw.common.web.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.web.SecurityFilterChain;
//import top.fangw.common.oauth.authorization.WebMvcAuthorizationManager;
//
//
///**
// * @description: 配置项目的放行策略
// * @author: fgw
// * @createDate: 2023/11/21
// */
////@Configuration
////@EnableWebSecurity
////@EnableMethodSecurity(jsr250Enabled = true, securedEnabled = true)
//public class AuthorizationClientConfig {
//
////    @Bean
//    WebMvcAuthorizationManager webMvcAuthorizationManager() {
//        return new WebMvcAuthorizationManager();
//    }
//
////    @Bean
//    public SecurityFilterChain securityFilterChain(HttpSecurity http)
//            throws Exception {
//
//        //uri放行
//        String[] ignoreUrls = new String[]{"/*.html", "/favicon.ico", "/webjars/**", "/*/v3/api-docs**", "/v3/api-docs/**"};
//        http.authorizeHttpRequests(authorize ->
//                authorize.requestMatchers(ignoreUrls).permitAll()
//                        // 鉴权管理器配置
//                        .anyRequest().access(webMvcAuthorizationManager()));
//        return http.build();
//
//    }
//
//
//}
